package com.ita.os.merchant.service.impl;

import java.util.List;

import com.ita.os.merchant.dao.DishDao;
import com.ita.os.merchant.dao.impl.DishDaoImpl;
import com.ita.os.merchant.po.Dish;
import com.ita.os.merchant.service.DishService;

public class DishServiceImpl implements DishService{

	private DishDao dishDao = new DishDaoImpl();
	
	@Override
	public Dish findById(int id) {
		return dishDao.findById(id);
	}

	@Override
	public int delete(int id) {
		return dishDao.delete(id);
	}

	@Override
	public List<Dish> showAll(int mid) {
		return dishDao.showAll(mid);
	}

	@Override
	public int insert(Dish d) {
		return dishDao.insert(d);
	}

	@Override
	public int update(Dish d) {
		return dishDao.update(d);
	}

}
